//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.yaukie.base.datasource;

import java.util.Map;
import javax.annotation.Nullable;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDataSource extends AbstractRoutingDataSource {
    @Nullable
    public Map<Object, Object> targetDataSources;

    public DynamicDataSource() {
    }

    protected Object determineCurrentLookupKey() {
        return DataSourceRouterHolder.getRouterKey();
    }

    public void setTargetDataSources(Map<Object, Object> targetDataSources) {
        super.setTargetDataSources(targetDataSources);
        this.targetDataSources = targetDataSources;
    }
}
